package com.example.wxai.pijo.vo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("message")
public class MessageVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 对应聊天id
     */
    @TableField("chat_id")
    private String chatId;

    /**
     * 信息类型
     */
    @TableField("message_type")
    private String messageType;

    @TableField("message")
    private String message;

    @TableField("creat_time")
    private LocalDateTime creatTime;



}
